const _charStr = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
/**
 * 生成随机数
 */
export function randomCode(length) {
    let code = ''
    for (let i = 0; i < length; i++) {
        code += _charStr.charAt(Math.floor(Math.random() * _charStr.length))
    }
    return code
}
